<div class="content-wrapper">
    <section class="content-header">
        <?php echo $this->partial('layout/breadcrumb'); ?>

        <h1 class="pull-right" id="dbshop-menu-top">
            <a href="<?php echo $this->url('sales', [], ['query' => $this->queryData]);?>" class="btn btn-default btn-sm"><i class="fa fa-arrow-left"></i> <?php echo $this->translate('返回订单列表'); ?></a>
        </h1>
    </section>

    <section class="content">
        <?php echo $this->partial('layout/messages'); ?>
        <div class="row">
            <div class="col-md-12">
                <div class="box">
                    <div class="box-body">
                        <h2 class="page-header">
                            <?php echo $this->translate('订单号').'&nbsp;'.$this->orderInfo->getOrderSn(); ?>
                            <small class="pull-right"><strong><?php echo $this->translate('订单状态').'：'.$this->salesHelper()->getOrderStatus($this->orderInfo->getOrderStatus()); ?></strong></small>
                        </h2>

                        <div class="row">
                            <div class="col-xs-12">
                                <?php if($this->expressContent) { ?>
                                <?php if (isset($this->expressContent['goods'])) { foreach ($this->expressContent['goods'] as $goodsValue) { ?>
                                        <strong><?php echo $this->translate('商品名称'); ?>：</strong><?php echo $this->escapeHtml($goodsValue['goodsName']); ?><br>
                                        <strong><?php echo $this->translate('快递名称'); ?>：</strong><?php echo $this->escapeHtml($goodsValue['deliveryName']); ?><br>
                                        <strong><?php echo $this->translate('快递单号'); ?>：</strong><?php echo $this->escapeHtml($goodsValue['expressNumber']); ?><br>
                                        <?php echo isset($goodsValue['expressContent']) ? $goodsValue['expressContent']['content'] : $this->translate('暂无物流轨迹信息'); ?>
                                        <hr>
                                    <?php } } else { ?>
                                        <?php echo $this->expressContent['content']; ?>
                                    <?php } ?>
                                <?php } ?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

</div>
